#ifndef MATHHELPER_H
#define MATHHELPER_H

#include <qglobal.h>
#include "Pixel.h"
#include <cmath>

class MathHelper
{
public:
    MathHelper();

    static uchar Lerp(uchar A, uchar B, float value);
    static Pixel Lerp(Pixel A, Pixel B, float value);
    static void Deallcoate(Pixel* pixels, int width, int height);
    static int Clamp(int value, int min, int max);
};

#endif // MATHHELPER_H
